package com.wowoai.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 响应Code枚举
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum {

    SUCCESS("成功",0),
    FAIL("失败",-1),

    BUSINESS_FAIL("业务处理失败",500),
    SUBTRACT_SCORE_FAIL("积分扣减失败",501),

    NO_AUTH("没有权限",403),
    TOKEN_EXPIRED("token已过期",400);


    private final String desc;
    private final int code;
}
